<div class="yxt15breadcrumb">
    <a href="javascript:;">当前位置 : 收入分配</a><a href="javascript:;">二业务</a>
</div>
<div class="yxt15">
    <div class="yxt15main panel">
        <div class="yxt15title"><i></i>  二业务</div>
        <div class="yxt15nav">
            <a class="yxt15navson" ng-click="goto('app.work.tableZH')">纵横</a>
            <a class="yxt15navson yxt15active" ng-click="goto('app.work.tablePL')">批量</a>
        </div>
        <form class="form-inline">
            <div class="form-group">
                <le-date style="width:200px;" bdate="obj.begin" edate="obj.end"
                ></le-date>
            </div>
            <div class="form-group">
                <input class="form-control" type="text" name="keyWord"
                    ng-model="obj.keyWord" placeholder="请输入关键字"
                />
            </div>
            <div class="form-group">
                <input select2 config="dataSet.customer" ng-model="obj.username"
                    select2-model="dataSet.username" class="form-control" placeholder="全部用户"
                />
            </div>
            <div class="form-group">
                <input select2 config="dataSet.busiType" ng-model="obj.bizId"
                    select2-model="dataSet.bizId" class="form-control" placeholder="全部分类"
                />
            </div>
            <div class="form-group">
                <input select2 config="dataSet.archiveStatus" ng-model="obj.archive"
                    select2-model="dataSet.archive" class="form-control" placeholder="全部归档状态"
                />
            </div>
            <div class="form-group">
                <input select2 config="dataSet.incomeStatus" ng-model="obj.incomeStatus"
                    select2-model="dataSet.incomeStatus" class="form-control" placeholder="全部收入状态"
                />
            </div>
            <div class="form-group">
                <input select2 config="dataSet.splitStatus" ng-model="obj.splitState"
                    select2-model="dataSet.splitState" class="form-control" placeholder="全部拆分状态"
                />
            </div>
            <div class="form-group">
                <button ng-click="search()" class="btn yxt15btn-red">搜&nbsp;&nbsp;索</button>
            </div>
            <div class="form-group">
                <button ng-click="reset()" class="btn yxt15btn-gray">重&nbsp;&nbsp;置</button>
            </div>
            <div class="form-group">
                <button ng-click="dujiekou()" class="btn yxt15btn-gray">嗷&nbsp;&nbsp;嗷</button>
            </div>
            <div class="form-group pull-right">
                <button class="btn yxt15btn-blue" ng-click="synchronizationItem()">
                    <i class="glyphicon glyphicon-plus"></i> 同步数据
                </button>
            </div>
            <div class="form-group pull-right">
                <button class="btn yxt15btn-blue" ng-click="exportItem()">
                    <i class="glyphicon glyphicon-plus"></i> 导出
                </button>
            </div>
            <div style="clear:both;"></div>
        </form>
        <div style="border: 1px solid #ddd; padding: 13px 10px 10px; background: #f9f9f9;" ng-if="selectList.length">
            <ul class="popupMultiBox">
                <li class="popupMultiTitle">多项选择</li>
                <li ng-repeat="row in selectList track by $index">
                    <span>{{ row.userName }}</span>
                    <i class="glyphicon glyphicon-remove" ng-click="selectList.splice(index, 1);" ></i>
                </li>
                <li class="popupMultiBtn"> <button class="btn"> <i class="glyphicon glyphicon-plus"></i> 批量编辑 </button> </li>
                <li class="popupMultiBtn"> <button class="btn">批量删除 </button> </li>
            </ul>
        </div>
    </div>
    <uib-alert type="danger">
        angular.equals({a:12,v:13}, {a:12,v:13}) == true // 强大的对比函数哈哈哈
    </uib-alert>
    <div class="yxt15box">
        <div class="yxt15loading" ng-show="yxt15loading">
            <div class="sk-spinner sk-spinner-wave"> <div class="sk-rect1"></div> <div class="sk-rect2"></div>
            <div class="sk-rect3"></div> <div class="sk-rect4"></div> <div class="sk-rect5"></div> </div>
            <center>数据加载中……</center>
        </div>
        <div class="yxt15nodata" ng-show="!yxt15datalist.length && !yxt15loading">
            <center>无数据</center>
        </div>
        <div class="table-responsive main-table-striped">
            <table class="table" ng-init="selectBtn(this)">
            <thead>
                <tr>
                    <th class="yxt15center" style="width:60px;">
                        <div class="checkbox-inline i-checks" ng-click="selectAll()">
                            <input type="checkbox"
                                ng-checked="selectList.length==yxt15datalist.length&&selectList.length!=0">
                            <i></i>
                        </div>
                    </th>
                    <th class="yxt15left" title="归档日期" style="width:100px;">归档日期 <i class="yxt15sort" ng-click="order('archiveDate')"></th>
                    <th class="yxt15left" title="用户名" style="width:100px;">用户名</th>
                    <th class="yxt15left" title="业务名称" style="width:100px;">业务名称</th>
                    <th class="yxt15left" title="推广id" style="width:100px;">推广id</th>
                    <th class="yxt15left" title="链接" style="width:100px;">链接</th>
                    <th class="yxt15left" title="UV数" style="width:100px;">UV数</th>
                    <th class="yxt15left" title="调整后的UV数" style="width:100px;">调整后<br />UV数</th>
                    <th class="yxt15left" title="收入单价" style="width:100px;">收入单价</th>
                    <th class="yxt15left" title="收入金额" style="width:100px;">收入金额</th>
                    <th class="yxt15left" title="收入总金额" style="width:100px;">收入总金额</th>
                    <th class="yxt15left" title="收入状态" style="width:100px;">收入状态</th>
                    <th class="yxt15left" title="归档状态" style="width:100px;">归档状态</th>
                    <th class="yxt15left" title="拆分状态" style="width:100px;">拆分状态</th>
                    <th class="yxt15center" title="操作" style="width:100px;">操作</th>
                </tr>
            </thead>
            <tbody ng-repeat="row in yxt15datalist">
                <tr>
                    <td class="yxt15center">
                        <div class="yxt15ellipsis">
                            <label class="checkbox-inline i-checks">
                                <input type="checkbox" checklist-model="selectList" checklist-value="row">
                                <i></i>
                            </label>
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.archiveDate }}">
                        <div class="yxt15ellipsis">
                            {{ row.archiveDate }}
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.userName }}">
                        <div class="yxt15ellipsis">
                            {{ row.userName }}
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.bizName }}">
                        <div class="yxt15ellipsis">
                            {{ row.bizName }}
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.adId }}">
                        <div class="yxt15ellipsis">
                            {{ row.adId }}
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.url }}">
                        <div class="yxt15ellipsis">
                            {{ row.url }}
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.uvCount }}">
                        <div class="yxt15ellipsis">
                            {{ row.uvCount }}
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.uvAdjustCount }}">
                        <div class="yxt15ellipsis">
                            {{ row.uvAdjustCount }}
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.price }}">
                        <div class="yxt15ellipsis">
                            {{ row.price }}
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.amount }}">
                        <div class="yxt15ellipsis">
                            {{ row.amount }}
                        </div>
                    </td>
                    <td class="yxt15left" title="{{ row.xxx }}">
                        <div class="yxt15ellipsis">
                            {{ row.xxx }}
                        </div>
                    </td>
                    <td class="yxt15center" title="{{ row.incomeType }}">
                        <div class="yxt15ellipsis">
                            {{ {'0':'预估','1':'暂定','2':'封账'}[row.incomeType]||'-' }}
                        </div>
                    </td>
                    <td class="yxt15center" title="{{ row.archiveState }}">
                        <div class="yxt15ellipsis">
                            {{ {'0':'未归档','1':'已归档'}[row.archiveState]||'-' }}
                        </div>
                    </td>
                    <td class="yxt15center" title="{{ row.splitState }}">
                        <div class="yxt15ellipsis">
                            {{ {'-1':'失败','1':'成功','0':'初始状态'}[row.splitState]||'-' }}
                        </div>
                    </td>
                    <td class="yxt15center">
                        <a ng-click="adjustmentItem(row)" style="margin-right:10px">调整</a>
                        <a ng-click="eidtItem(row)" style="margin-right:10px">编辑</a>
                        <a ng-click="deleteItem(row)" style="margin-right:10px">删除</a>
                        <a ng-click="openItem(row)" style="margin-right:10px">开启</a>
                    </td>
                </tr>
            </tbody>
            </table>
        </div>
        <div class="main-table-info">
            <div class="main-table-info-msg"> <h6>{{showMessage()}}</h6> </div>
            <div class="pull-right">
                <uib-pagination total-items="yxt15totalrow" ng-model="page" max-size="3"
                    first-text="第一页" items-per-page="pagesize" ng-change="pageChanged()"
                    previous-text="上一页" next-text="下一页" last-text="最后页"
                    boundary-links="true" boundary-link-numbers="true">
                </uib-pagination>
            </div>
        </div>
    </div>
</div>
